# -*- coding: utf-8 -*-

from PyQt5.QtWidgets import QDesktopWidget, QApplication, QWidget
from PyQt5.QtWidgets import QGraphicsView,QGraphicsScene
from PyQt5.QtWidgets import QHBoxLayout,QLabel
from PyQt5.QtGui import QPixmap
from PyQt5 import QtCore
import sys
#import qdarkstyle

class Show(QWidget):
    def __init__(self, form):
        super().__init__()
        self.resize(202, 107)
        self.setMinimumSize(QtCore.QSize(192, 89))
        self.setMaximumSize(QtCore.QSize(202, 107))
        self.pic = QPixmap(r"./pic/joker.png")  
        slayout = QHBoxLayout(self)        
        for i in range(3):            
            mlab = QLabel()
            mlab.setMinimumSize(64,89)
            mlab.setMaximumSize(64,89)
            mlab.setPixmap(self.pic)
            slayout.addWidget(mlab)

class Desktop(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setWindowTitle('QGraphicsView')
        self.resize(600, 600)
        
        layout = QHBoxLayout(self)
        layout.addWidget(Show(self))
        self.center()

    def center(self):
        screen = QDesktopWidget().screenGeometry()
        size = self.geometry()
        self.move((screen.width() - size.width()) / 2, (screen.height() - size.height()) / 2)

def main():
    app=0
    app = QApplication(sys.argv) 
    view = QGraphicsView()
    view.resize(800, 800)
    scene = QGraphicsScene(view)
    view.setScene(scene)
#    view.rotate(90)
    view.show()
    win =  Desktop()
    w = scene.addWidget(win)
    print(w)
    sys.exit(app.exec_())
if __name__ == "__main__":
    main()
